package cm.day05.Test1;

public class ShowHandlerDemo {
    public static void main(String[] args) {
        useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("在方法内部调用了ShowHandler的show的方法");
            }
        });

        useShowHandler(() -> {
            System.out.println("Lamdba");
        });
    }

public static void useShowHandler(ShowHandler showHandler){
showHandler.show();
}
}
